package com.clps.mapper;

import com.clps.entity.UserInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ywl
 * @since 2022-09-07
 */
@Repository
public interface UserInfoMapper extends BaseMapper<UserInfo> {
    /**
     * 获取所有用户信息
     * @return 以集合的方式放回
     */
    List<UserInfo> getAll();

    /**
     * 根据id，查询用户信息
     * @param id
     * @return
     */
    UserInfo getOneById(@Param("id")Long id);


}
